package cn.shanks.dubbo.consume;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @author Shanks
 * @version 1.0
 * @program cn.shanks.dubbo.consume
 * @description
 * @date 2020/9/25 14:09
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class ConsumeApplication {

    public static void main(String[] args) {
        SpringApplication.run(ConsumeApplication.class, args);
    }

    @Bean
    public Snowflake getSnowflake() {
        return IdUtil.getSnowflake(1, 1);
    }
}
